﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using LyData.Data.Xml;


public partial class Controls_meta : System.Web.UI.UserControl
{
    protected string strname = "";
    protected string strTitile = "";
    protected string strMeta = "";
    protected string strMetaInfo = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Bind();
        }
    }

    protected void Bind()
    {
        string str = "0";
        DataRow row = new XmlProvider(base.Server.MapPath("~/App_Data/Website.xml")).ReadNode(string.Format("descendant::Info[Language={0}]", str));
        if (row != null)
        {
            this.strname = (string)row["WebsiteName"];
            this.strTitile = (string)row["WebsiteTitle"];
            this.strMeta = (string)row["KeyWords"];
            this.strMetaInfo = (string)row["Description"];
        }
    }
}
